package com.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.manager.entity.Member;
import com.manager.vo.LoginVo;
import com.manager.vo.RegisterVo;
import org.springframework.core.io.Resource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface IMemberService extends IService<Member> {


    /**
     * 登录
     */
    Map<String, String> login(LoginVo loginVo);

    /**
     * 注册
     */
    int register(RegisterVo registerVo);

    /**
     * 获取登录用户信息
     */
    Member getInfo(String token);

    /**
     * 上传
     */
    String upload(MultipartFile file);

    /**
     * 获取头像
     */
    ResponseEntity<Resource> getAvatar(String fileName);

    int updateMember(Member member);
}
